﻿using Windows.UI.Xaml;

namespace WinRTControl.Extensions
{
    public class DependencyObjectExtensionProperties : DependencyObject
    {
        public static bool GetAreHandlersSuspended(DependencyObject obj)
        {
            return (bool)obj.GetValue(AreHandlersSuspendedProperty);
        }

        public static void SetAreHandlersSuspended(DependencyObject obj, bool value)
        {
            obj.SetValue(AreHandlersSuspendedProperty, value);
        }

        public static readonly DependencyProperty AreHandlersSuspendedProperty =
            DependencyProperty.RegisterAttached("AreHandleSuspended", typeof(bool), typeof(DependencyObjectExtensionProperties), new PropertyMetadata(false));
    }
}
